package com.demo.studentmanager.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.demo.studentmanager.dto.ClassListDto;
import com.demo.studentmanager.entity.StudentClass;
import com.demo.studentmanager.vo.ClassVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author zjia
 */
@Repository
public interface ClassMapper extends BaseMapper<StudentClass> {
    /**
     * 查询教室
     *
     * @param page
     * @param classListDto
     * @return
     */
    IPage<ClassVo> getClassList(IPage<ClassVo> page, @Param("search") ClassListDto classListDto);

}
